<style>
	.turnbottom1{
		position: relative;
		top:1px;
	}
	.turnbottom2{
		position: relative;
		top:2px;
	}
</style>
<div class="content" style="padding:5px">
    <div class="form-group clearfix">
        <label class="control-label" style="text-align:left;text-indent:7px;">口令类型:</label>
        <label class="checkbox-inline">
            <input class="turnbottom2" type="radio" value="1" ng-model="postData.code_status" name="code_status"> 固定口令
        </label>
        <label class="checkbox-inline">
            <input class="turnbottom2" type="radio" value="2" ng-model="postData.code_status" name="code_status"> 定时口令
        </label>
    </div>
    <div class="form-group clearfix">
        <label class="col-md-12 control-label" style="text-align:left;padding-left: 8px;">中奖规则:</label>
        <div class="col-md-12" ng-show="code_type==1">
            <table class="table" style="border:1px solid #eeeeee;">
                <thead style="background: rgb(241, 241, 241);text-align:center;">
                    <tr>
                        <td style="width:40%">类型</td>
                        <td style="width:19%">口令</td>
                        <td style="width:25%">中奖奖品</td>
                        <td style="width:11%">库存</td>
                    </tr>
                </thead>	
                <tbody>
                    <tr>
                        <td style="width:40%">
                            <label class="checkbox-inline">
                                <input class="turnbottom1" type="radio" ng-model="postData.code_type" value="1" name="code_type"> 唯一口令
                            </label>
                            <label class="checkbox-inline">
                                <input class="turnbottom1" type="radio" ng-model="postData.code_type" value="2" name="code_type"> 随机口令
                            </label>
                        </td>
                        <td style="width:19%" 
                        	ng-show="code_type1==1">
                        	<input class="form-control" 
                        		   style="text-align:center;background:#f4f8fb" 
                        		   type="text" 
                        		   placeholder="填写口令" ng-model="postData.code" name="code">
                        </td>
                        <td style="width:19%" ng-show="code_type1==0"><input class="form-control" style="text-align:center;background:#f4f8fb;cursor:pointer;" readonly="readonly" type="text" value="上传口令文件"></td>
                        <td style="width:25%"><input class="form-control" type="text" style="text-align:center;background:#f4f8fb"></td>
                        <td style="width:11%"><input class="form-control" type="text" style="text-align:center;background:#f4f8fb"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="col-md-12" style="padding-right: 6px;" ng-show="code_type==0">
            <table class="table" style="border:1px solid #eeeeee;">
                <thead style="background: rgb(241, 241, 241);text-align:center;">
                    <tr>
                        <td style="width:40%">开启时间</td>
                        <td style="width:19%">口令</td>
                        <td style="width:25%">中奖奖品</td>
                        <td style="width:11%">库存</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="width:40%">
                            <div class="input-group command-rule" style="margin-bottom: 0px;">
                                <input type="text" style="height:44px;" class="form-control"> 
                                <span style="height:44px;" class="input-group-addon border-right-none">至</span> 
                                <input style="height:44px;" type="text" class="form-control">
                            </div>
                        </td>
                        <td style="width:19%"><input class="form-control" style="text-align:center;background:#f4f8fb" type="text" name="postData.code" ng-model="code" placeholder="填写口令"></td>
                        <td style="width:25%"><input class="form-control" type="text" name="prize_id" ng-model="postData.prize_id" style="text-align:center;background:#f4f8fb"></td>
                        <td style="width:11%"><input class="form-control" type="text" name="inventory" ng-model="postData.inventory" style="text-align:center;background:#f4f8fb"></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="form-group clearfix">
        <div class="col-md-12" style="line-height: 38px;">本模板添加奖品数量1 ～ 50个。<button style="background: rgb(251, 64, 75);color:#ffffff;" class="btn btn-danger pull-right">添加奖品</button></div>
    </div>
    <div class="form-group clearfix">
        <div class="col-md-12" style="line-height: 38px;">提示：口令文件需要CSV格式,每次最多导入10000条记录。</div>
    </div>
    <div class="form-group clearfix">
        <div class="col-md-12" style="line-height: 38px;"><button style="background: rgb(251, 64, 75);color:#ffffff;" class="btn btn-danger"  ng-click="test($event)">保 存</button></div>
    </div>
</div>